<?php
	include_once('header.php');

	// start 取得链接表数据
	$query = "select * from `links`";
	$result_link = $mysql_connection->query($query);
	// end 取得链接表数据
?>

<div id="content_b"><table border="0" width="100%">
	<tr><td>链接名称</td><td>链接地址</td><td>链接打开方式</td><td>链接rss地址</td></tr>
	<?php
		while ($each_link = $result_link->fetch_assoc()) {
		?>
		<tr id="<?php echo $each_link['url'];?>"><td><?php echo $each_link['name'];?></td>
		<td><?php echo $each_link['url'];?></td>
		<td><?php echo $each_link['open_type'];?></td>
		<td><?php echo $each_link['rss_url'];?></td></tr>
		<tr id="<?php echo $each_link['url'];?>_2"><td colspan="4">
			<span class="edit_del_link_span"><a href="add_link.php?url=<?php echo $each_link['url'];?>">编辑</a>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:;" onClick="del_link('<?php echo $each_link['url'];?>');">删除</a></span>
		</td></tr>
		<?php
		}
	?>
</table></div>

<?php include_once('footer.php');?>
